﻿using JetBrains.Annotations;
using K9Nano.Dependency;

namespace K9Nano.MultiTenancy
{
    /// <summary>
    /// Cache tenant during a request
    /// </summary>
    public interface ITenantResolverCache
    {
        [CanBeNull] TenantResolverCacheItem Value { get; set; }
    }

    public class NullTenantResolverCache : ITenantResolverCache, ITransientDependency
    {
        public TenantResolverCacheItem Value
        {
            get => null;
            set { }
        }
    }
}